package com.luozhili.Swing;

import javax.swing.*;
import java.awt.*;

/**
 * 对话框
 */
public class Dialog1 extends JDialog {
    public Dialog1() {
        Container c = getContentPane();
        c.add(new Label("aoligan"));

        setBounds(100,100,100,100);
    }

    /**
     * 阻塞父窗体
     * @param jFrame
     */
    public Dialog1(JFrame jFrame) {
        super(jFrame,"对话框标题",true);

        Container c = getContentPane();
        c.add(new Label("aoligan"));


        setBounds(100,100,100,100);
    }


}
